home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: jasimp@ix.netcom.com (John Simpson )
- Newsgroups: comp.lang.c
- Subject: Protected Mode --> Real Mode Calls **HELP**
- Date: 16 Jan 1996 17:59:00 GMT
- Organization: Netcom
- Message-ID: <4dgp14$9gp@ixnews5.ix.netcom.com>
- NNTP-Posting-Host: ix-har5-19.ix.netcom.com
- X-NETCOM-Date: Tue Jan 16 9:59:00 AM PST 1996
-
- Here's the scene ...
-
- Have an application written in Cobol with a few statically called 'C'
- functions (in a DLL) for mainframe communications. The communications
- requires 3 TSR's which are loaded into conventional memory, 2 of which
- are loaded high and the third in the lower 640. The application is
- running from a DOS window and is linked to run (and is running) in
- extended memory. To log in to the mainframe:
- 1. Cobol statically calls the 'C' login function
- 2. The 'C' login function starts the call to the third TSR.
-
- The application blows up here. The 'C' call is never completed and the
- application terminates with a GPF. I am assuming that this is a cross
- mode addressing problem.
-
- The whole thing worked just fine UNTIL THE APPLICATION WAS RUN IN
- EXTENDED MEMORY!!!!
-
- If I'm way off base, can anyone offer a suggestion?
-
- If my assumption is correct, is there a way, using Microsoft 6.0, to
- compile/link this 'C' DLL so it will work properly???
-
- Please Email any suggestions.
-
- Thanks in advance.
-